package g.m.springcloud.controller;

import g.m.springcloud.entities.User;
import g.m.springcloud.service.UserService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
public class UserController {

    @Resource
    private UserService userService;


    @GetMapping("/read")
    public List<User> read(){
        return userService.read();
    }
}
